]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Handle _NET_WM_FULLSCREEN_MONITORS
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 23 Feb 2013 21:02:17 +0000 (22:02 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Mon, 25 Feb 2013 21:06:45 +0000 (22:06 +0100)
Mark all monitors that fullscreen when window is using
the _NET_WM_FULLSCREEN_MONITORS to be fullscreen on multiple monitors.

https://bugzilla.gnome.org/show_bug.cgi?id=646861

js/ui/layout.js

index 2b96df83dd05e075f3761841c25bf658f61fe1cf..56519b4015e21991b65a430678c3dfefa2cb1818 100644 (file)
@@ -886,9 +886,9 @@ const LayoutManager = new Lang.Class({
                     for (let i = 0; i < this.monitors.length; i++)
                         this.monitors[i].inFullscreen = true;
                 } else {
-                    let monitor = this.monitors[metaWindow.get_monitor()];
-                    if (monitor)
-                        monitor.inFullscreen = true;
+                    let monitors = metaWindow.get_all_monitors();
+                    for (let i = 0; i < monitors.length; i++)
+                        this.monitors[i].inFullscreen = true;
                 }
             }
         }